<div id="box_display">
<div id="list_table">
    <table cellspacing="8px" style="margin-bottom: 5px">
        <tr>
            <td width="80px">Mã số HĐ</td>
            <td><strong><?php echo $id?></strong></td>
        </tr>
        <tr>
            <td width="80px">Tổng tiền</td>
            <td><strong><?php echo $data1["total"]?></strong></td>
        </tr>
    </table>
                    <table width="75%" cellpadding="2" cellspacing="2">
                          <tbody>
                          <tr>
                            <td width="20%" class="table_titile">Name Product</td>
                            <td width="20%" class="table_titile">Count</td>
                            <td width="20%" class="table_titile">Total</td>
                            <td width="20%" class="table_titile">Modify</td>
                          </tr>
                          <?php
                            $count=0;
                                foreach ($data as $item) {
                                    $count++;
                                    if($count%2==0)
                                        echo "<tr class='row_chan'>";
                                    else
                                        echo "<tr>";
                                    echo '<td>'.$item['ten'].'</td>';
                                    echo '<td>'.$item['soluong'].'</td>';
                                    echo '<td>'.$item['gia'].'</td>';
                                    echo '<td class="alt">
                                            <a href="'.site_url('home_admin/editProductBill')."?id=".$item['id']."&masp=".$item['masp']."&gia=".$item['gia'].'">Edit</a>
                                            <a href="'.site_url('home_admin/deleteProductBill')."?id=".$item['id']."&masp=".$item['masp']."&gia=".$item['gia'].'" >Delete</a>
                                         </td>';
                                    echo "</tr>";  
                                }
            
                          ?>
                    </tbody>
                   </table>
</div>
</div>